package com.muyu.danmo.service.impl;


import com.muyu.common.core.domain.Result;
import com.muyu.danmo.domain.DanmoCollectPraise;
import com.muyu.danmo.domain.DanmoTrainingLikes;
import com.muyu.danmo.mapper.DanmoCollectPraiseMapper;
import com.muyu.danmo.service.IDanmoCollectPraiseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 拾贝点赞Service业务层处理
 *
 * @author yangle
 * @date 2024-10-30
 */
@Service
public class DanmoCollectPraiseServiceImpl implements IDanmoCollectPraiseService
{
    @Autowired
    private DanmoCollectPraiseMapper danmoCollectPraiseMapper;

    /**
     * 查询拾贝点赞
     *
     * @param id 拾贝点赞主键
     * @return 拾贝点赞
     */
    @Override
    public DanmoCollectPraise selectDanmoCollectPraiseById(Long id)
    {
        return danmoCollectPraiseMapper.selectDanmoCollectPraiseById(id);
    }

    /**
     * 查询拾贝点赞列表
     *
     * @param danmoCollectPraise 拾贝点赞
     * @return 拾贝点赞
     */
    @Override
    public List<DanmoCollectPraise> selectDanmoCollectPraiseList(DanmoCollectPraise danmoCollectPraise)
    {
        return danmoCollectPraiseMapper.selectDanmoCollectPraiseList(danmoCollectPraise);
    }

    /**
     * 新增拾贝点赞
     *
     * @param danmoCollectPraise 拾贝点赞
     * @return 结果
     */
    @Override
    public int insertDanmoCollectPraise(DanmoCollectPraise danmoCollectPraise)
    {
        return danmoCollectPraiseMapper.insertDanmoCollectPraise(danmoCollectPraise);
    }

    /**
     * 修改拾贝点赞
     *
     * @param danmoCollectPraise 拾贝点赞
     * @return 结果
     */
    @Override
    public int updateDanmoCollectPraise(DanmoCollectPraise danmoCollectPraise)
    {
        return danmoCollectPraiseMapper.updateDanmoCollectPraise(danmoCollectPraise);
    }

    /**
     * 批量删除拾贝点赞
     *
     * @param ids 需要删除的拾贝点赞主键
     * @return 结果
     */
    @Override
    public int deleteDanmoCollectPraiseByIds(Long[] ids)
    {
        return danmoCollectPraiseMapper.deleteDanmoCollectPraiseByIds(ids);
    }

    /**
     * 删除拾贝点赞信息
     *
     * @param id 拾贝点赞主键
     * @return 结果
     */
    @Override
    public int deleteDanmoCollectPraiseById(Long id)
    {
        return danmoCollectPraiseMapper.deleteDanmoCollectPraiseById(id);
    }


}
